package com.jnmd.utils;

public class FormarTime {

	public static String time(int time){
		
		int hour = time/3600;
		
		int minute = time/60-hour*60;
		
		int second = time%60;
		
		String resulTime = null;
		
		String temp = formatTime(hour)+":"+formatTime(minute)+":"+formatTime(second);
		
		return temp;
	}
	
	public static String formatTime(int time){
		if(time<10){
			return "0"+time;
		}else{
			return ""+time;
		}
	}
}
